import fetch from '@/utils/fetch'

export function login(data) {
  return fetch({
    url: '/api/adminUser/login',
    method: 'post',
    data
  })
}

export function getInfo() {
  return fetch({
    url: '/api/adminUser/selectAdminUserByToken',
    method: 'get',
    params: {}
  })
}

export function logout() {
  return fetch({
    url: '/vue-admin-template/user/logout',
    method: 'post'
  })
}
